#include "stdafx.h"
#include "DataManager.h"

#include "JsonData.h"
#include "XmlData.h"
#include "ConfigData.h"


CDataManager::CDataManager()
{
	m_pJsonData = NULL;
	m_pXmlData = NULL;
	m_pConfigData = NULL;
}

CDataManager::~CDataManager()
{
	if (m_pJsonData)
	{
		delete m_pJsonData;
		m_pJsonData = NULL;
	}

	if (m_pXmlData)
	{
		delete m_pXmlData;
		m_pXmlData = NULL;
	}

	if (m_pConfigData)
	{
		delete m_pConfigData;
		m_pConfigData = NULL;
	}
}

void CDataManager::Init()
{
	m_pJsonData = new CJsonData;
	m_pXmlData = new CXmlData;
	m_pConfigData = new CConfigData;
}

